public class ThreadTest implements  Runnable {
    private  int count=0;
    public static void main(String[] args) {
ThreadTest test=new ThreadTest();
Thread thd=new Thread(test);
thd.start();
        System.out.println("蔡新华");
        System.out.println("我是浩哥");
        System.out.println("蔡信浩真难受");
        System.out.println("我是经理，我在添加新功能");
try{
    thd.join();
} catch (InterruptedException e) {
    e.printStackTrace();
}
    }



    @Override
    public void run() {
while (count++<10)
{
    System.out.println("hello world");
    try{
        Thread.sleep(1000*1);
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
}
    }
}
